package com.jetsum.micro.controller;

import com.jetsum.micro.service.RepoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/repo")
public class RepoController {

    @Autowired
    private RepoService repoService;

    @PostMapping("/save")
    public String save() {
        return repoService.save();
    }

    @PostMapping("/adjust")
    public String adjust(@RequestParam int count) {
        return repoService.adjust(count);
    }
}
